Skip to content

Introduce CancellableContinuation.resume with onCancelling lambda #1084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2019

Conversation

elizarov
Copy link
Contributor

  • Allows safe return of closeable resources from suspending
    functions, as it provides a way to close a resource if the
    corresponding job was cancelled.
  • Documentation on the context and expected behavior of
    CompletionHandler implementations is updated.

Fixes #1044

@elizarov elizarov requested a review from qwwdfsad April 10, 2019 22:41
* Allows safe return of closeable resources from suspending
functions, as it provides a way to close a resource if the
corresponding job was cancelled.
* Documentation on the context and expected behavior of
CompletionHandler implementations is updated.

Fixes #1044
@elizarov elizarov force-pushed the resume-cancelling branch from 24ef1b1 to 3af2596 Compare April 12, 2019 12:45
@elizarov elizarov requested a review from qwwdfsad April 12, 2019 12:45
@elizarov elizarov merged commit 2b8218a into develop Apr 12, 2019
@elizarov elizarov deleted the resume-cancelling branch April 12, 2019 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants